<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  <script type="text/javascript">
    var config = {
            url: getCurrentUrl("query.act"),
            search: true,
            pagination: true,
            showRefresh: true,
            showColumns: true,
            method:"post",
            iconSize: 'outline',
            uniqueId:"id",//id字段名
            toolbar: '#${actionID }',
            striped:true,//设置为 true 会有隔行变色效果
            sidePagination: "${pageConfig.sidePagination }", //是否服务端处理分页
            paginationLoop:false,// 	设置为 true 启用分页条无限循环的功能,服务端端分页才有效
            icons: {
              refresh: 'glyphicon-search',
              toggle: 'glyphicon-list-alt',
              columns: 'glyphicon-list'
            },
   			contentType:"application/x-www-form-urlencoded",
   			queryParams:function(queryParams){
   				var form = $("#${actionID }_SearchTable").serializeArray();
   				console.log(form);
   				for(var i = 0; i < form.length;i++){
   					queryParams[form[i].name] = $.trim(form[i].value);
   				}
   				return queryParams;
   			}
     };
    if(typeof(tableConfig) != "undefined"){
    	for(var temp in tableConfig){
    		config[temp] = tableConfig[temp];
    	}
    }
    $('#${actionID }Table').bootstrapTable(config);
    
    </script>

